import request from '../utils/request';
import { getConfig } from '../utils/config';
var config = getConfig();

// 列表查询
export async function getList(data) {
  return request(
    `/api/get`,
    {
      method: 'GET',
      params: data.params,
    },
    config.url,
  );
}

// 添加用户
export async function addUser(data) {
  return request(
    `/api/add`,
    {
      method: 'POST',
      body: JSON.stringify(data.body),
    },
    config.url,
  );
}
